<template>
    <div id="float-ball" @click='handleClick'>填充</div>
</template>

<script setup lang="ts">
function handleClick() {
    const fields = {
        jobType: '4',
        projectId: '342',
        method: 'POST',
        domainName: 'http://compass.imdada.local',
        url: '/job/schedule/byBeanName',
        owner: 'duanluyao,tianchaohui',
        retryCount: '0',
        applicationType: 'FORM',
        params: 'jobBeanName=',
        cron: '0 0 0 * * ?'
    };

    Object.entries(fields).forEach(([id, value]) => {
        const element = document.querySelector(`#${id}`) as HTMLInputElement;
        if (element) {
            element.value = value;
        }
    });
}
</script>

<style scoped>

</style>
